﻿@{
    ViewBag.Title = "CostMaterialReport";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section Head
{
    @Html.Css("EditForm", "RightSeparateModule", "dp")
    @Html.Js("datepicker")
    <script type="text/javascript">
        $(document).ready(function () {
            $("#instockDt").datepicker({ picker: "<img class='picker' align='middle' src='../../Images/icons/s.gif' alt=''/>" });
            $("#btnExportc").click(function () {
                var gid = $("#groupid :selected").val();
                var dt = $("#instockDt").val();
                var strulr = "ExeportCostAccount?gid=" + gid + "&dt=" + dt;
                var subwin = window.open(strulr, "", "menubar=no,toolbar=no,status=no,resizable=no,scrollbars=yes");
                subwin.moveTo(0, 0);
                subwin.resizeTo(window.screen.availWidth, window.screen.availHeight);
                return false;
            });
            $("#btnExportm").click(function () {
                var yax = $("#canteenid :selected").val();
                var yy = $("#canteenyy :selected").text();
                var mm = $("#canteenmm :selected").val();
                var strulr = "ExeprotMaterialTongJi?yy=" + yy + "&mm=" + mm + "&yax=" + yax;
                var subwin = window.open(strulr, "", "menubar=no,toolbar=no,status=no,resizable=no,scrollbars=yes");
                subwin.moveTo(0, 0);
                subwin.resizeTo(window.screen.availWidth, window.screen.availHeight);
                return false;
            });
        });
    </script>
}
   <div id="container">
        <div id="mainContent">
            <div id="titlec" class="title">食堂班组成本核算单</div>
            <div id="findDivc">
             <table>
                <tr>
                 <td>班组：</td>
                 <td>@Html.DropDownList("groupid",
                                        ViewData["GetGroup"] as IEnumerable<SelectListItem>,
                                        new { @style = "width:158px; height:22px; font-size:13px;" })
                 </td>
                 <td>日期：</td>
                 <td>@Html.TextBox("instockDt", DateTime.Now.Date.ToString("yyyy-MM-dd"), new { @ReadOnly = true })</td>
                 <td><a id="btnExportc" class="button" href="javascript:void(0);"><span>导 出</span></a></td>
                </tr>
             </table>
            </div>
            <div id="titlem" class="title">原料统计表</div>
            <div id="findDivm">
             <table>
                <tr>
                 <td>食堂：</td>
                 <td>@Html.DropDownList("canteenid",
                                        ViewData["GetYaxNode"] as IEnumerable<SelectListItem>,
                                        new { @style = "width:158px; height:22px; font-size:13px;" })
                 </td>
                 <td>年份：</td>
                 <td>@Html.DropDownList("canteenyy",
                                   ViewData["yy"] as IEnumerable<SelectListItem>,
                                   new { @style = "width:108px; height:22px; font-size:13px;" })
                 </td>
                 <td>月份：</td>
                 <td>@Html.DropDownList("canteenmm",
                                   ViewData["mm"] as IEnumerable<SelectListItem>,
                                        new { @style = "width:108px; height:22px; font-size:13px;" })
                 </td>
                 <td>
                     <a id="btnExportm" class="button" href="javascript:void(0);"><span>导 出</span></a>
                 </td>
                </tr>
             </table>
            </div>
        </div>
    </div>

